﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageSite.master" AutoEventWireup="true"
    CodeFile="Inscricao.aspx.cs" Inherits="Inscricao" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderConteudo" runat="Server">
    <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" runat="server">
        <ProgressTemplate>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <br />
    <div class="titulo">
        <asp:Label ID="lblTitulo" runat="server" Text="Candidatos"></asp:Label>
    </div>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="grvPrincipal" runat="server" AutoGenerateColumns="false" DataKeyNames="cod_candidato_can"
                DataSourceID="odsPrincipal" EnableViewState="false" Width="400px">
                <Columns>
                    <asp:BoundField DataField="nom_candidato_can" HeaderText="Nome" SortExpression="nom_candidato_can">
                        <HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                    </asp:BoundField>
                    <asp:BoundField DataField="num_cpf_can" HeaderText="CPF" SortExpression="num_cpf_can">
                        <HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                    </asp:BoundField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <itemstyle horizontalalign="Right" verticalalign="Top" />
                            <asp:ImageButton ID="btnAlterar" runat="server" PostBackUrl='<%# Eval("cod_candidato_can", "InscricaoCad.aspx?cod_candidato_can={0}") %>'
                                ImageUrl="~/img/editar.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    Nenhum registro foi encontrado!
                </EmptyDataTemplate>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <div class="button">
        <asp:Button ID="btnConsultar" runat="server" Text="Consultar" />
        <asp:Button ID="btnCadastrar" runat="server" Text="Cadastrar" PostBackUrl="~/InscricaoCad.aspx" />
    </div>
    <asp:ObjectDataSource ID="odsPrincipal" runat="server" TypeName="ProcessoSeletivo.DAO.Candidato"
        SelectMethod="ListarCandidato"></asp:ObjectDataSource>
</asp:Content>
